home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ Control Panel Hide 7.xpl < prev    next >
Text File  |  1999-07-15  |  2KB  |  81 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="5"
  4. "UIPATH"="Appearance\General\Control Panel"
  5. "NAME"="Visible pages in "Display" (NT)"
  6. "LANGUAGE"="VBScript"
  7. "VERSION"="1.04"
  8. "TEXT 1"="Show "Background" page in Display control"
  9. "TEXT 2"="Show "Screen Saver" page in Display control"
  10. "TEXT 3"="Show "Appearance" page in Display control"
  11. "TEXT 4"="Show "Settings" page in Display control"
  12. "TEXT 5"="Show "ActiveDesktop" page in Display control "
  13. "DESCRIPTION 1"="To show an page inside the "Display" control, activate it. To hide it, deactivate it."
  14. "DESCRIPTION 2"="If all items are hidden, the "Display" control will not start."
  15. "AUTHOR"="Xteq Systems"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  18. "COMMENT 2"=" "
  19.  
  20.  
  21.  
  22. sPath="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\"
  23. sPath2="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
  24.  
  25. sBAK="NoDispBackgroundPage" 'all dword (1 = remove)
  26. sSCR="NoDispScrSavPage"
  27. sAPP="NoDispAppearancePage"
  28. sSET="NoDispSettingsPage"
  29. sACD="NoActiveDesktopChanges"
  30.  
  31. Sub Plugin_Initialize 
  32.  if GetWinVer=2 then
  33.     i=RegReadValue(sPath & sBAK)
  34.     if i<>1 then SetUIElement 1,true
  35.  
  36.     i=RegReadValue(sPath & sSCR)
  37.     if i<>1 then SetUIElement 2,true
  38.  
  39.     i=RegReadValue(sPath & sAPP)
  40.     if i<>1 then SetUIElement 3,true
  41.  
  42.     i=RegReadValue(sPath & sSET)
  43.     if i<>1 then SetUIElement 4,true
  44.  
  45.     i=RegReadValue(sPath2 & sACD)
  46.     if i<>1 then SetUIElement 5,true
  47.  else
  48.     Disable()
  49.  end if
  50.  
  51. End Sub
  52.  
  53. Sub Plugin_CheckData(ElementIndex)
  54. End Sub
  55.  
  56. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  57.  Call WriteIt(1,sPath,sBAK)
  58.  Call WriteIt(2,sPath,sSCR)
  59.  Call WriteIt(3,sPath,sAPP)
  60.  Call WriteIt(4,sPath,sSET)
  61.  Call WriteIt(5,sPath2,sACD)
  62. End Sub
  63.  
  64. Sub WriteIt(ITM,PAT,VAL)
  65.  b=GetUIElement(ITM)
  66.  if b=false then
  67.     call RegWriteValue(PAT & VAL,1,2)
  68.  else
  69.     chk=RegReadValue(PAT & VAL)
  70.     if IsEmpty(chk)=false then
  71.        Call RegDeleteValue(PAT & VAL)
  72.     end if
  73.  end if
  74. end sub
  75.  
  76. Sub Plugin_Terminate 
  77. End Sub
  78.  
  79.  
  80.  
  81.